package com.myzombieapocalypse.projectz.web;


import com.myzombieapocalypse.projectz.application.MapFacade;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;

/**
 * User: StuartS
 * Date: 25/10/11
 * Time: 07:18
 */
public class HomepageController implements Controller{

    private MapFacade mapFacade;

    public void setMapFacade(MapFacade mapFacade) {
        this.mapFacade = mapFacade;
    }

    public ModelAndView handleRequest(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception {
        Map<String,Object> model = new HashMap<String,Object>();
        return new ModelAndView("homepage",model);
    }
}
